import appendNum from './page/appendNum';
import NumberTimer from './util/number';

var num = new NumberTimer();
var isStart = false;
num.NumberGenerator = (n,isPrime) => {
    appendNum(n, isPrime);
}

window.onclick = function () {
    if (isStart) {
        num.stop();
        isStart = false;
    } else {
        num.start();
        isStart = true;
    }
}